/**
 * @Description: 商城
 * @author 焦政
 * @date 2019/4/6
*/
const Controller = require('egg').Controller;
class GoodsController extends Controller {
  /**
   * @Description: 查询商品列表
   * @author 焦政
   * @date 2019/4/6
  */
  async getGoodsList() {
    const { ctx } = this;
    const goodsList = await ctx.service.mysql.mapper.db('goods/goods', 'selectgoods', {});
    ctx.body = {
      code: 0,
      goodsList,
    }
  }
}

module.exports = GoodsController
